
var api = require("../../../utils/api.js");
Page({
    data: {
        radio: "",
        feedback: [],
        icon: {
            normal: "",
            active: "https://static.beautyfarm.com.cn/vip_admin/icon/radio.png"
        },
        content: ""
    },
    bindinput: function(t) {
        this.setData({
            content: t.detail.value
        });
    },
    subFeedBack: function() {
        if (this.data.content.trim()) {
            var t = {
                content: this.data.content.trim(),
                openid:wx.getStorageSync('openid')
            };
            api.default.submitFeedback(t).then(res=>{
                wx.showModal({
                    title: "温馨提示",
                    content: "您的反馈已经提交成功！",
                    showCancel: !1,
                    success: function(t) {
                        wx.navigateBack();
                    }
                });
            });
        } else wx.showToast({
            title: "请输入您的反馈",
            icon: "none"
        });
    },
    onShareAppMessage: function() {}
});